package com.itcanteen.medical.patient.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.joda.time.DateTime;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "withdrawal")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Withdrawal{
    @Column(name = "order_id",nullable = false)
    private Long orderId;

    @Column(name = "user_id",nullable = false)
    private Long userId;

    @Column(name = "monery",nullable = false)
    private Double monery;

    @Column(name = "platform",nullable = false)
    private String platform;

    @Column(name = "state",nullable = false)
    private String state;

    @Column(name = "operation_type",nullable = false)
    private String operationType;

    @Column(name = "third_party_receipt",nullable = false)
    private String thirdPartyReceipt;

    @Column(name = "creation_time",nullable = false)
    private Date creationTime;

}
